<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        /* 子选择器，只会选择元素1的元素2对应数据 */
        div>a{
            color: yellow;
        }
    </style>
</head>
<body>
    <div>
        <a href="#">我是儿子a</a>

        <p><a href="#">我是孙子a</a></p>
    </div>
    
</body>
</html>